
package com.hushi.impl;

import com.hushi.dao.CustomerDao;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.PreDestroy;

//@Component  //如果不加value，名称默认为类名：customerDaoImpl
@Repository(value = "customerDaoImpl3")
@Scope("prototype")
public class CustomerDaoImpl3 implements CustomerDao {

    public void init() {
        System.out.println("初始化customer对象");
    }
    @Override
    public void save() {
        System.out.println("测试SpringIOC的注解用法03");
    }



}